<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>享送小哥</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
</head>

<body>
    <div class="aui-content">
        <header class="aui-bar aui-bar-nav aui-bar-light u-aui-bar" id="header">
            <a class="aui-pull-left aui-btn" onclick="api.closeWin();"> <span class="aui-iconfont aui-icon-left"></span> </a>
            <div class="aui-title u-aui-title">系统设置</div>
        </header>
        <div class="aui-content">
            <ul class="aui-list aui-list-in u-set bor-no">
                <li class="aui-list-item aui-list-item-middle" tapmode onclick="clearCache()">
                    <a href="javascript:;" class="aui-list-item-inner aui-list-item-arrow"> 清除缓存 </a>
                </li>
                <!-- <li class="aui-list-item">
                    <a href="" class="aui-list-item-inner aui-list-item-arrow"> 为我们打分 </a>
                </li> -->
                <li class="aui-list-item" tapmode onclick="article(10)">
                    <a href="javascript:;" class="aui-list-item-inner aui-list-item-arrow"> 隐私说明 </a>
                </li>
                <li class="aui-list-item" tapmode onclick="article(11)">
                    <a href="javascript:;" class="aui-list-item-inner aui-list-item-arrow bor-bn"> 关于我们 </a>
                </li>
            </ul>
        </div>
    </div>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/app.js"></script>
    <script type="text/javascript">
        apiready = function() {
            var statusBarPos = app.statusBar.pos();
            var headerPos = app.pos('header');

            window.clearCache = function() {
                api.clearCache(function() {
                    api.toast({
                        msg: '清除完成'
                    });
                });
            }

            window.article = function(id) {
                api.showProgress({
                    title: '正在读取',
                    text: '请稍候...',
                    modal: true
                });
                api.openFrame({
                    name: 'article' + id,
                    url: app.app_host + 'Common/articleDetail?close=1&id=' + id,
                    rect: {
                        x: 0,
                        y: statusBarPos.h + headerPos.h,
                        w: 'auto',
                        h: 'auto'
                    },
                    bgColor: '#eee',
                    bounces: true,
                    animation: {
                        type: 'push',
                        subType: 'from_bottom'
                    }
                });
                api.hideProgress();
            }
        }
    </script>
</body>

</html>
